﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manager/Manager.master" AutoEventWireup="true" CodeFile="CandidateManager.aspx.cs" Inherits="Manager_CandidateManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageTitle" Runat="Server">
Manager Candidate | Aptitude Online Test
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageHeader" Runat="Server">
    <link type="text/css" rel="stylesheet" href="../Style/dataTables.css" />  
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {

            $(".tablegrid").find('td table').addClass("paging");

            $(".tablegrid").attr('border', '0');

            $(".tablegrid").find('td table tbody tr:first').append("<td>Page<td>");

            //check show message
            if ($("#ctl00_BodyContent_lblmes").text() != "") {
                setTimeout('showSuccess( $("#ctl00_BodyContent_lblmes").text())', 100);
            }
            //add candidate
            $("#addNew").click(function () {
                window.location.href = 'AddCandidate.aspx';
            });

        })
        </script> 
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="BodyContent" Runat="Server">
<div class="header">
        <span><span class="ico  gray spreadsheet"></span>Manager Candidate </span>
    </div>
    <!-- End header -->
    <div class=" clear">
    </div>
    <div class="content">
        <p>
            <a id="addNew" title="Add">Add candidate</a>
        </p>

        <p>
            <asp:Label ID="lblUsername" runat="server" Text="Full Name : " Width="75px"></asp:Label>
            <asp:TextBox ID="txtUsername" runat="server" Width="250px" 
                CausesValidation="True"></asp:TextBox>
                <asp:Button ID="btnSearch" class="uibutton normal but_login"  runat="server" 
                onclientclick="" Text="Search" onclick="btnSearch_Click" />
        </p>
        

        <p>
        <asp:Label ID="lblmes" runat="server" Text=""></asp:Label>
            
    <asp:GridView ID="grvCandidate" CssClass="tablegrid" runat="server" 
        onrowdeleting="grvCandidate_RowDeleting" 
        onrowupdating="grvCandidate_RowUpdating" AllowPaging="True"  PageSize="5"
                AutoGenerateColumns="False" onrowdatabound="grvCandidate_RowDataBound" 
                DataKeyNames="ID" onpageindexchanging="grvCandidate_PageIndexChanging">
    <AlternatingRowStyle BackColor="#ffffff" />
        <Columns>
            <asp:BoundField DataField="Username" HeaderText="Username" />
            <asp:BoundField DataField="FullName" HeaderText="FullName" />
            <asp:BoundField DataField="Email" HeaderText="Email" />
            <asp:BoundField DataField="Mobile" HeaderText="Mobile" />
            <asp:BoundField DataField="Address" HeaderText="Address" />
            <asp:TemplateField HeaderText="Action">
                <ItemTemplate>
                           <asp:LinkButton ID="edit" CommandName="Update" runat="server" Enabled="True"><img src="../Images/icon/icon_edit.png" /></asp:LinkButton>
                            <asp:LinkButton ID="del" CommandName="delete" runat="server" CausesValidation="False" EnableViewState="False" Enabled="True" ClientIDMode="AutoID">
                               <img src="../Images/icon/icon_delete.png" /></asp:LinkButton>

                        </ItemTemplate>
            </asp:TemplateField>           
        </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" BorderStyle="None" />
                <PagerStyle BackColor="#ffffff" BorderStyle="None" ForeColor="#999" HorizontalAlign="Right" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
</asp:GridView>

            
        </p>
    </div>
</asp:Content>

